import http from '../utills/request'
//获取验证码
export let getCaptureApi = () => http.get('/users/getCaptcha?v=next')
//校验验证码
export let verifyCaptureApi = (captch) =>http.get('/users/verifyCaptcha?captcha=' + captch)
//登录接口(普通登录)
export let loginApi = (username,password) =>http.post('/users/login',{
    username,
    password
})
//手机验证码登录
export let smsApi = code =>http.post('/users/login?type=sms',{
    code
})
//获取短信验证码(传入手机号码)
export let getSmsCode = phoneNumber =>http.post('/sms/send',{phoneNumber})

//获取角色列表
export let getRoleMsg = (roleid,token)=>http.get('/permission/getrole',{
    roleid,
    token
})

//获取权限菜单
export let getPermission = ()=>http.get('/permission/getMenuList')

